package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.device;

import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Device;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.DeviceMaintenance;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;

import java.util.List;

/**
 * Created by huangxueqian on 2017/4/28/028.
 */
public interface JsmDeviceMaintenanceService {

    /**
     * @param deviceMaintenance
     * @return 插入维保周期
     */
    int insertDeviceMaintenance(Device device, DeviceMaintenance deviceMaintenance, EmployeeVo employee) throws Exception;
    List<DeviceMaintenance> selectByDeviceMaintenanceList(DeviceMaintenance deviceMaintenance)throws Exception;

    /**
     * 保存设备新增设备周期
     *
     * @param device
     * @param deviceMaintenances
     * @param employee
     */
    int insertDeviceMaintenances(Device device, List<DeviceMaintenance> deviceMaintenances, EmployeeVo employee) throws Exception;
    /**
     * 查询维保周期列表 ， 注意排序
     * @param deviceMaintenance
     */
    List<DeviceMaintenance> getDeviceMaintenanceList(DeviceMaintenance deviceMaintenance) throws Exception ;

    /**
     * @param deviceMaintenances 删除维保周期之后进行更新
     * @param employeeVo 当前操作人信息
     */
    int delDeviceMaintenances(List<DeviceMaintenance> deviceMaintenances, EmployeeVo employeeVo);

    /**
     *
     */
    int delDeviceMaintenances(Device device);

}
